package org.iabako.client.ui.page.business.sale;

import org.iabako.client.config.page.PageConfigEnum;
import org.iabako.client.tools.IabakoAsyncCallback;
import org.iabako.client.ui.form.business.sale.make.SaleMakeForm;

/**
 * Created by jose on 12/07/15.
 */
public class QuoteMake extends SaleMakeForm {

    public QuoteMake() {
        super(PageConfigEnum.QuoteMake, "");

        activateQuoteMode();

        //This is normal first access
        quoteServiceAsync.getNextAvailableId(new IabakoAsyncCallback<String>() {
            public void onSuccess(String result) {
                saleMakeConfirmation.number.setValue(result);
                super.onSuccess(result);
            }
        });

    }
}
